// 依赖实体类
const SafeString = require('../base/SafeString');

// 配置类
const config = require('../../config').config;

/**
 * 实体类 Login 用于接收登录信息
 */
class Login {
    constructor(obj) {
        this.account = new SafeString(obj.account, 1, config.account_length).value;
        this.password = new SafeString(obj.password, 1, config.password_length).value;
    }
}

module.exports = Login;